package kk.test;

import kk.dao.UserDao;
import kk.dao.impl.UserDaoImpl;
import kk.domain.User;

public class testDemo {
    public static void main(String[] args) {
        /*UserDao userDao=new UserDaoImpl();
        List<User> users = userDao.findAll();
        for (User user : users) {
            System.out.println(user);
        }*/

        /*UserDao userDao=new UserDaoImpl();
        User user=new User();
        user.setName("大黑");
        userDao.add(user);*/
        UserDao userDao=new UserDaoImpl();
        /*userDao.deleteUserById(7);*/
       /* User user = userDao.findUserById(5);
        System.out.println(user);*/
        User user=new User();
        user.setId(12);
        user.setName("熊二十");
        user.setGender("男");
        user.setAge(230);
        user.setAddress("南京");
        user.setQq("1234567");
        user.setEmail("1234567@qq.com");
        userDao.updateUser(user);
    }
}
